import request from '@/utils/request'

// 查询模型预警日志列表
export function listModelwarnlog(query) {
  return request({
    url: '/znjc/modelwarnlog/list',
    method: 'get',
    params: query
  })
}

// 查询模型预警日志详细
export function getModelwarnlog(warningId) {
  return request({
    url: '/znjc/modelwarnlog/' + warningId,
    method: 'get'
  })
}

// 新增模型预警日志
export function addModelwarnlog(data) {
  return request({
    url: '/znjc/modelwarnlog',
    method: 'post',
    data: data
  })
}

// 修改模型预警日志
export function updateModelwarnlog(data) {
  return request({
    url: '/znjc/modelwarnlog',
    method: 'put',
    data: data
  })
}

// 删除模型预警日志
export function delModelwarnlog(warningId) {
  return request({
    url: '/znjc/modelwarnlog/' + warningId,
    method: 'delete'
  })
}
